﻿using scripts.net;

namespace scripts.proto
{
	public class RegisterMsg : BaseMsg
	{
		public RegisterMsg()
		{
			protoName = "RegisterMsg";
		}
		//client
		public string id = "";
		public string password = "";
		//server
		//0->注册成功 1->注册失败
		//TODO 改成 1->注册成功 0->注册失败
		public int result = 0;
	}

	public class LoginMsg : BaseMsg
	{
		public LoginMsg()
		{
			protoName = "LoginMsg";
		}
		//client
		public string id = "";
		public string password = "";
		//server
		//0->注册成功 1->注册失败
		//TODO 改成 1->注册成功 0->注册失败
		public int result = 0;
	}

	public class KickMsg : BaseMsg
	{
		public KickMsg()
		{
			protoName = "KickMsg";
		}
		//server
		//0->同时登陆
		public int reason = 0;
	}
}

